#include <stdio.h>
#include <iostream>
using namespace std;

unsigned long long nway[30001];
//$100, $50, $20, $10, and $5 notes and $2, $1, 50c, 20c, 10c and 5c coins
int coin[11] = { 10000, 5000, 2000, 1000, 500, 200, 100, 50, 20, 10, 5 };
//int coin[11] = {2000,1000,400,200,100,40,20,10,4,2,1};
int NUMBER_OF_COINS = 11;

void process(int n) {
  	int v,c;

 
  	nway[0] = 1;
  	for (int i=0; i<NUMBER_OF_COINS; i++) {
    		c = coin[i];
    		for (int j=c; j<=n; j++)
      			nway[j] += nway[j-c];
  	}

//  cout  << nway[n] << "\n";
}
int main() {
	int dollars, cents, n;
	process(30000);

	while (true) {
		scanf("%d.%d", &dollars, &cents);
		n = cents + (100 * dollars);
//		n /= 5;
		if (((int)n) == 0) break;		


		printf("%3d.%02d%17llu\n", dollars, cents, nway[n]);
/*		if (nway[(int)n] == 1) {
			cout << "There is only 1 way to produce " << n << " cents change.\n";
		} else {
			cout << "There are " << nway[(int)n] << " ways to produce " << n << " cents change.\n"; 
		}
	//	cout << nway[n] << "\n";*/

	}	
}	
